﻿using CID.Domain.Infrastructure;
using CID.Domain.Operations;

namespace CID.Domain.Persistence.Mappings.Infrastructure
{
    public class DeploymentAgentMap : NamedEntityMap<DeploymentAgent>
    {
        public DeploymentAgentMap() : base() 
        {
            Map(x => x.Address);
            Map(x => x.Enabled);
            HasMany<Location>(x => x.Locations).Cascade.SaveUpdate();
        }
    }
}
